package model

type SecretMetadata struct {
	Id                string `json:"_id"`
	Appid             string `json:"appid"`
	SecretName        string `json:"secret_name"`
	EncryptionKeyId   string `json:"encryption_key_id"`
	Description       string `json:"description"`
	CreateTime        int64  `json:"create_time"`
	DeleteTime        int64  `json:"delete_time"`
	PlannedDeleteTime int64  `json:"planned_delete_time"`
	RotationInterval  int64  `json:"rotation_interval"`
	LastRotationDate  int64  `json:"last_rotation_date"`
	NextRotationDate  int64  `json:"next_rotation_date"`
}

// SecretMetadataPartitionId 分区ID
func SecretMetadataPartitionId(id string) string {
	return "secret_metadata:" + id
}
